Fix the Vulkan header check for VK_RESULT_RANGE_SIZE
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 28 Dec 2020 18:41:18 +0000 (18:41 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 28 Dec 2020 18:41:18 +0000 (18:41 +0000)
The VK_RESULT_RANGE_SIZE enumeration value was removed in 1.2.140, not
1.2.142.

Fixes: #3522
gdk/gdkvulkancontext.c

index a561476dce410ac21f2daf6023689b95357cad4d..13ba8dae8b0b3a779e0738f549b461894d32af41 100644 (file)
@@ -225,7 +225,7 @@ gdk_vulkan_strerror (VkResult result)
     case VK_ERROR_PIPELINE_COMPILE_REQUIRED_EXT:
       return "A requested pipeline creation would have required compilation, but the application requested compilation to not be performed.";
 #endif
-#if VK_HEADER_VERSION < 142
+#if VK_HEADER_VERSION < 140
     case VK_RESULT_RANGE_SIZE:
 #endif
     case VK_RESULT_MAX_ENUM: